<?

function tags_admin_showTagCloud($data) {
	
	foreach ($data as $k => $v)
		if ($v['attr'] & AA_VISIBLE) {
			if ($v['attr'] & AA_SELECTABLE) {
				?><li><a href="#" rel="<?=$v['id']?>"><?=$v['name']?></a> <?
			} else {
				?><li><span><?=$v['name']?></span> <?
			}
			
			if($v['data']) {
				?><ul><?	tags_admin_showTagCloud($v['data']) ?></ul><?
			}
			
			?></li><?
		}
}

if (sizeof($DATA['tags'])) {
	?><ul><? tags_admin_showTagCloud($DATA['tags']) ?></ul><?
}